<#include "/common/template.ftl">
<@template csses=["register"] jses=["register"]>
<#assign basePath=attrs.contextPath>
	<div class="register_page">
		<div class="register_title">
			<div class="title_txt_div">
				<h>管理员注册</h>
			</div>
		</div>
		<div class="register_area">
	    	<form class="form-horizontal" action="${basePath}/register" method="post" enctype="multipart/form-data">
			 	<div class="control-group">
			    	<label class="control-label">用户名：</label>
			    	<div class="controls">
			      		<input type="text" id="username" name="username">
			      		<h>作为登陆名</h>
			    	</div>
			    	<p type="text" class="usernameWarning warning"></p>
			  	</div>
			 	<div class="control-group">
				    <label class="control-label">密码：</label>
				    <div class="controls">
				    	<input type="password" id="password" name="password">
				    	<h>6-16个字符，字母区分大小写</h>
				    </div>
				    <p type="text" class="passwordWarning warning"></p>
			  	</div>
			 	
			  	<div class="control-group">
				    <label class="control-label">确认密码：</label>
				    <div class="controls">
				    	<input type="password" id="confirmPassword" name="confirmPassword">
				    	<h>请再次输入密码</h>
				    </div>
				     <p type="text" class="confirmPasswordWarning warning"></p>
			  	</div>
			  	<div class="control-group">
			    	<label class="control-label">邮箱：</label>
			    	<div class="controls">
			      		<input type="text" id="email" name="email">
			      		<h>作为登陆的账号</h>
			    	</div>
			    	<p type="text" class="emailWarning warning"></p>
			  	</div>
			  	<div class="control-group">
				    <label class="control-label">手机号：</label>
				    <div class="controls">
				    	<input type="text" id="cellphone" name="cellphone">
				    </div>
				    <p type="text" class="cellphoneWarning warning"></p>
			  	</div>
			  	<div class="control-group">
				    <div class="controls">
				    	<button type="submit" class="btn btn-primary" onclick="return checkRegisterInfo()">立即注册</button><a class="loginTip">如果已有管理员账号？</a><a class="loginHref" href="${basePath}/login">请直接登陆 >></a>
				    </div>
			  	</div>
			</form>
		</div>
	</div>
	
</@template>